
'use strict';
const app = require('tcb-admin-node');
const tcb_config = {env: 'meatom04-01-2gue0fnr49a26808'};
app.init(tcb_config).auth();
const db = app.database();
let event_param

function delVerCon(param) {
    event_param = param
    console.log(event_param)
    return db.collection("VersionCon").doc(event_param.id).remove().then(res => {
      return param
    }).catch(error => {
      return error
    })
}

exports.main = async (event, context, callback) => {
  return await delVerCon(event)
};
